//C11:11.17:compare.c -- compare two strings.
#include <stdio.h>
#include <string.h>

#define ANSWER  "Grant"
#define MAX     40

int main(void)
{
	char try[MAX];
	puts("Wh is buried in Grant's tomb?");
	gets(try);

	while (strcmp(try, ANSWER) != 0)
	{
		puts("NO, that's wrong. Try again.");
		gets(try);
	}

	puts("That's right!");
}
